import pandas as pd

# 读取CSV文件
df = pd.read_csv('/share_data/nfs_share/myh_dev/01-CrossBorderAIChallenge/2024-dianshang/output/llama-70b_2024-10-10_54.csv')

# 检查是否存在同时为1的情况
both_true = ((df['is_prohibited'] == 1) & (df['requires_compliance_check'] == 1)).any()

if both_true:
    print("存在同时为1的情况")
else:
    print("不存在同时为1的情况")

# 可选：显示同时为1的记录
if both_true:
    print("\n同时为1的记录：")
    print(df[(df['is_prohibited'] == 1) & (df['requires_compliance_check'] == 1)])
